package net.pm.core.service.power;

import java.util.List;

import net.pm.common.service.GenericServicer;
import net.pm.common.toolkit.PMRetcodeGenerator;
import net.pm.core.entities.db.DeptPower;

public interface DeptPowerServicer extends GenericServicer<DeptPower, Long>{

	/**
	 * 根据部门id查找权限Code
	 * @param deptId
	 * @return
	 */
	List<String> findDeptPowerCodesByDeptId(Integer deptId);
	
	/**
	 * 更新部门权限
	 * @param deptId
	 * @param powerIds
	 * @return
	 */
	Long modifyDeptPower(Integer deptId,Integer[] powerIds);
	Long power_modify_success = PMRetcodeGenerator.next();				//更新权限成功
	Long power_modify_failed = PMRetcodeGenerator.next();				//更新权限失败
	
	/**
	 * 删除部门权限
	 * @param deptId
	 * @return
	 */
	Long removeDeptPower(Integer deptId);
	Long power_remove_success = PMRetcodeGenerator.next();
	Long power_remove_failed = PMRetcodeGenerator.next();
}
